package com.hzbank.generate.util;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyException {
    public static void main(String[] args) {

        int a =4;
        int b = 0;
        try {
            int c = a/b;
        }catch (Exception e){
            e.printStackTrace();
            log.error(e.getMessage());
        }finally {
            log.info("执行结束");
        }
        System.out.println("aaaaa");
        //StreamWriter writer = new StreamWriter("log.txt", true);
        // 会写入根目录下得log.txt文件中
        // tyr{ } Catch（Exception ex） {
        // writer.Write(ex.ToString());
        // writer.WriteLine("");
        // writer.Flush();
        // }



    }



}
